/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.awt.Image;
import java.net.URL;
import javax.swing.ImageIcon;

/**
 *
 * @author dennis
 */
public class WallTile extends Tile {
    
    Image image;
    private boolean accessible = false;
    
    public WallTile(int xPos, int yPos, int tileWidth, int tileHeight){    
        
        super(xPos, yPos, tileWidth, tileHeight);        
        this.setGraphicPath(getDefaultGraphicPath());
        
    }
    
    public WallTile(Tile tile){
        super(tile);  
    }
    
    public String getDefaultGraphicPath(){
       return "../images/wall_64.png"; 
    }
    
    public Image getGraphic(){
        
        URL loc = this.getClass().getResource(this.graphicPath);
        ImageIcon iia = new ImageIcon(loc);
        Image image = iia.getImage();
        
        return image;
        
    }
    
    public boolean isAccessible(){
        return this.accessible;
    }
    
}
